package com.silence.thread.safe;

import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class ThreadMain {
    public static void main(String[] args) throws Exception {
        Account acc = new Account("ICBC-110",10.0);
        Thread m1 = new MoneyThread(acc,"小明");
        Thread m2 = new MoneyThread(acc,"小红");
        m2.start();
        m1.start();
    }
}
